package com.cloud.service.coupon;

import com.cloud.bean.coupon.CouponRule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuyuan
 * @since 2022-08-06
 */
public interface CouponRuleService extends IService<CouponRule> {

    List<CouponRule> listByBatchCouponId(Long id);

    CouponRule getByIdAndRuleId(Long batchCouponId, Long rule);

    boolean delByRuleIdAndBatchCouponId(Long ruleId, Long id);

    int delByBatchCouponId(Long id);
}
